package cn.fjgc.work;

import java.util.Scanner;

import javax.print.DocFlavor.INPUT_STREAM;

public class Test1 {
	
	private static Scanner input = new Scanner(System.in);
	
	public static void main(String[] args) {
		int[] a = new int[10];
		for(int i=0; i<a.length; i++) {
			a[i] = input.nextInt();
		}

		for(int i=a.length-1; i>=0; i--) {
			System.out.print(a[i]+" ");
			//System.out.println("a[" + i + "]= " + a[i]);
		}
	}
	
}
